package net.samuelli.zenslideshow
{
	public class ZenfolioUtil
	{
		private static const ZENFOLIO_URL_PREFIX:String = "http://www.zenfolio.com";
		private static const ZENFOLIO_PHOTO_SIZE_THUMBNAIL_SUFFIX:String = "-10.jpg";
		private static const ZENFOLIO_PHOTO_SIZE_SMALL_SUFFIX:String = "-2.jpg";
		
		public function ZenfolioUtil()
		{
		}

		public static function buildThumbnailURL(urlCore:String):String {
			return ZENFOLIO_URL_PREFIX + urlCore + ZENFOLIO_PHOTO_SIZE_THUMBNAIL_SUFFIX;
		}
		
		public static function buildSmallPhotoURL(urlCore:String):String {
			return ZENFOLIO_URL_PREFIX + urlCore + ZENFOLIO_PHOTO_SIZE_SMALL_SUFFIX;
		}
		
		public static function buildGalleryURL(galleryId:String, photoId:String):String {
			return ZENFOLIO_URL_PREFIX + "/p" + galleryId + "/?photo="+photoId;
		}
		
		public static function buildOwnerHomepage(username:String):String {
			return "http://" + username + ".zenfolio.com";
		}
	}
}